﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JNPF.Basics.Models
{
    /// <summary>
    /// 订单明细
    /// 版 本：V3.0.0
    /// 版 权：引迈信息技术有限公司（https://www.jnpfsoft.com）
    /// 作 者：JNPF开发平台组
    /// 日 期：2017-12-11 
    /// </summary>
    [Table("EXT_ORDERENTRY")]
    public class OrderEntryEntity
    {
        /// <summary>
        /// 自然主键
        /// </summary>
        [Key]
        [Column("F_ID")]
        public string Id { get; set; }
        /// <summary>
        /// 订单主键
        /// </summary>
        [Column("F_ORDERID")]
        public string OrderId { get; set; }
        /// <summary>
        /// 商品Id
        /// </summary>
        [Column("F_GOODSID")]
        public string GoodsId { get; set; }
        /// <summary>
        /// 商品编码
        /// </summary>
        [Column("F_GOODSCODE")]
        public string GoodsCode { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        [Column("F_GOODSNAME")]
        public string GoodsName { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        [Column("F_SPECIFICATIONS")]
        public string Specifications { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        [Column("F_UNIT")]
        public string Unit { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        [Column("F_QTY")]
        public decimal? Qty { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        [Column("F_PRICE")]
        public decimal? Price { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        [Column("F_AMOUNT")]
        public decimal? Amount { get; set; }
        /// <summary>
        /// 折扣%
        /// </summary>
        [Column("F_DISCOUNT")]
        public decimal? Discount { get; set; }
        /// <summary>
        /// 税率%
        /// </summary>
        [Column("F_CESS")]
        public decimal? Cess { get; set; }
        /// <summary>
        /// 实际单价
        /// </summary>
        [Column("F_ACTUALPRICE")]
        public decimal? ActualPrice { get; set; }
        /// <summary>
        /// 实际金额
        /// </summary>
        [Column("F_ACTUALAMOUNT")]
        public decimal? ActualAmount { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        [Column("F_DESCRIPTION")]
        public string Description { get; set; }
        /// <summary>
        /// 排序码
        /// </summary>
        [Column("F_SORTCODE")]
        public long? SortCode { get; set; }
    }
}